package _10define;

public class Demo {
    public static void main(String[] args) {
        Father son=new Son();
    }
}
class GrandFather{
    {
        System.out.println("GrandFather static block");
    }
}
class Father extends GrandFather{
    {
        System.out.println("Father static block");
    }
}
class Son extends Father{
    {
        System.out.println("Son static block");
    }
}
class GrandSon extends Son{
    {
        System.out.println("GrandSon static block");
    }
}
